package com.bleeth.fx.meta;


import javafx.scene.layout.Region;

/**
 * @author BleethNie
 * @version 1.0
 * @date 2021-11-13 22:16
 **/

public class AComponent<T> implements IComponent {

    protected double height;

    protected double width;

    //样式设置
    protected StyleFunction style;

    //行为设置
    protected ActionFunction action;

    //id
    protected String id;


    public T height(double height) {
        this.height = height;
        return (T) this;
    }

    public T width(double width) {
        this.width = width;
        return (T) this;
    }

    public T id(String id) {
        this.id = id;
        return (T) this;
    }

    public T style(StyleFunction style) {
        this.style = style;
        return (T) this;
    }

    public T action(ActionFunction action) {
        this.action = action;
        return (T) this;
    }


    @Override
    public Region make() {
        return null;
    }



}

